<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<c:url value="/resources/css/view.css"/>" >
</head>
<body>
 <h1>Address</h1>
<form:form modelAttribute="address" method="POST" action="addressForm">
 <form:hidden path="addressId" />
 <table>
  <tr>
   <td><form:label path="address1">Address1:</form:label></td>
   <td><form:input path="address1"/></td>
   <td><form:errors path="address1" cssClass="error"/></td> 
  </tr>
  
  <tr>
   <td><form:label path="address2">address2:</form:label></td>
   <td><form:input path="address2"/></td>
   <td><form:errors path="address2" cssClass="error"/></td>
  </tr>
  <tr>
   <td><form:label path="city">city:</form:label></td>
   <td><form:input path="city"/></td>
   <td><form:errors path="city" cssClass="error"/></td>
  </tr>
  <tr>
   <td><form:label path="state">state:</form:label></td>
   <td><form:input path="state"/></td>
   <td><form:errors path="state" cssClass="error"/></td>
  </tr>
  <tr>
   <td><form:label path="country">country:</form:label></td>
   <td><form:input path="country"/></td>
   <td><form:errors path="country" cssClass="error"/></td>
  </tr>
  <tr>
   <td><form:label path="zip">zip:</form:label></td>
   <td><form:input path="zip"/></td>
   <td><form:errors path="zip" cssClass="error"/></td>
  </tr>
  <tr>
   <td><form:label path="phone">phone:</form:label></td>
   <td><form:input path="phone"/></td>
   <td><form:errors path="phone" cssClass="error"/></td>
  </tr>

 </table>
 <table>
 <tr>
 <td width="70"><input type="submit" value="Save" /></td>
 	<c:url var="backUrl" value="/customer/address" >
    </c:url>
	<td><a href="${backUrl}" > back </a></td>
</tr>
</table>
</form:form>
</body>
</html>

   